package com.phone.store.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/7/31 9:55 下午
 */
@Data
public class AddressForm {

    /**
     * id: 27
     * name: "张三"
     * tel: "13678900987"
     * addressDetail: "168号306室"
     * areaCode: "110101"
     * province: "北京市"
     * city: "北京市"
     * county: "东城区"
     */
    private Integer id;

    @NotEmpty(message = "姓名不能为空")
    private String name;

    @NotEmpty(message = "电话不能为空")
    private String tel;

    @NotEmpty(message = "省不能为空")
    private String province;

    @NotEmpty(message = "市不能为空")
    private String city;

    @NotEmpty(message = "区不能为空")
    private String county;

    @NotEmpty(message = "编码不能为空")
    private String areaCode;

    @NotEmpty(message = "详细地址不能为空")
    private String addressDetail;
}
